<%@page contentType="text/html; charset=UTF-8"%>
<%@taglib uri="/WEB-INF/struts-tags.tld" prefix="s"%>
<%@taglib uri="/WEB-INF/dianning.tld" prefix="dianning"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<link href="/css/top.css" rel="stylesheet" type="text/css" />
<link href="/css/foot.css" rel="stylesheet" type="text/css" />
<link href="/css/index.css" rel="stylesheet" type="text/css" />
<link href="/css/vip.css" rel="stylesheet" type="text/css" />
<link href="/css/avatar.css" rel="stylesheet" type="text/css" />
<link href="/css/validator.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" charset="utf-8" src="/js/jquery-1.4.2.min.js"></script>
<script type="text/javascript" charset="utf-8" src="/js/jquery_last.js"></script>
<script type="text/javascript" charset="utf-8" src="/js/formValidator.js"></script>
<script type="text/javascript" charset="utf-8" src="/js/formValidatorRegex.js"></script>
<script type="text/javascript" charset="utf-8" src="/js/DateTimeMask.js"></script>
<script type="text/javascript" charset="utf-8" src="/js/avatar.js"></script>
<script type="text/javascript" charset="utf-8" src="/js/popup.js"></script>
<link rel="shortcut icon" href="favicon.ico">
<link rel="icon" type="images/gif" href="animated_favicon1.gif" />
<title>点宁网[<dianning:webinfo type="area"/>分类信息]<dianning:webinfo type="area"/>免费发布信息<dianning:webinfo type="poweredby"/></title>
<meta name="Description" content="<dianning:webinfo type="area"/>分类信息网为您提供<dianning:webinfo type="area"/>分类信息，您可以免费发布和查询求职招聘,兼职,房屋出租,二手市场,生活服务,兼职,黄页等分类信息."/>
<meta name="Keywords" content="<dianning:webinfo type="area"/>免费发布信息, <dianning:webinfo type="area"/>分类信息, <dianning:webinfo type="area"/>信息港, <dianning:webinfo type="area"/>热线, <dianning:webinfo type="area"/>免费发布广告，<dianning:webinfo type="area"/>114"/>
</head>
<body>
<div class="bgtop">
<s:include value="/top.jsp" />
</div>
<div class="content">
<s:include value="/WEB-INF/jsp/user/left.jsp" />
	<div class="vipr">
	  <h2>修改密码</h2>
	  <ul class="viprheight">
<form name="save" id="save" method="post" action="userInfo.action">
<s:hidden name="action" value="dopassword" />
<TABLE  class="grpic mt20" border=0 cellSpacing=0 cellPadding=0>
  <TBODY>
  <TR>
    <td align="right" width="34%">用户名： </td>
    <td align="left"><s:property value="userInfo.username"/></td>
    </TR>
  <TR>
    <TD width="34%" align=right><SPAN class=red>*</SPAN>原 密 码： </TD>
    <TD align=left><s:textfield name="oldpass" id="oldpass" size="20"/> <span id="oldpassTip"></span></TD>
</TR>
  <TR>
    <TD align=right><SPAN class=red>*</SPAN>新 密 码：</TD>
    <TD align=left><s:textfield name="password" id="password" size="20"/> <span id="passwordTip"></span></TD>
</TR>
  <TR>
    <TD align=right><SPAN class=red>*</SPAN>确认密码：</TD>
    <TD align=left><s:textfield name="passfirm" id="passfirm" size="20"/><span id="passfirmTip"></span></TD>
</TR>
  <TR>
    <TD>&nbsp; </TD>
    <TD align=left><INPUT id=btnSubmit class=grsub value=完成修改 type=submit name=btnSubmit />    </TD></TR></TBODY></TABLE>
<DIV class=c></DIV></FORM>
  </ul>
      <h3></h3>

    </div>

    </div>
<div class="content">
<s:include value="/foot.jsp" />
</div>
<script type="text/javascript">        
$(document).ready(function(){
	$.formValidator.initConfig({formid:"save",errorfocus: true});
	$("#oldpass").formValidator({onshow:"请输入原密码",onfocus: "请输入原密码" }).regexValidator({ regexp: "^[A-Za-z0-9]*$", onerror: "只能输入大小写英文字母、数字" }).regexValidator({ regexp: "^(.){6,20}$", onerror: "密码为6-20个字！" });
	$("#password").formValidator({onshow:"请输入新密码",onfocus: "请输入新密码" }).regexValidator({ regexp: "^[A-Za-z0-9]*$", onerror: "只能输入大小写英文字母、数字" }).regexValidator({ regexp: "^(.){6,20}$", onerror: "密码为6-20个字！" });
	$("#passfirm").formValidator({onshow:"请输入确认密码",onfocus: "请输入确认密码" }).compareValidator({desid: "password", operateor: "=", onerror: "输入的密码不一致", datatype: "string"});
<s:if test="#session.code=='password_error'">
	ShowAlert('提示','原密码错误!',340,80);
</s:if>
<s:if test="#session.code=='password_true'">
	ShowAlert('提示','密码修改成功!',340,80);
</s:if>
});
</script>
</body>
</html>
